package com.maiji.cloud.service.shopping;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

import com.maiji.cloud.request.shopingmall.DistributeFundReqDto;
import com.maiji.cloud.request.shopingmall.DistributeIntegralReqDto;
import com.maiji.cloud.request.shopingmall.DistributionLogListReqDto;

@FeignClient(value = "MAIJICLOUD-SHOPINGMALL")
public interface IntegralService {

	@PostMapping("/capitalMain/distributeIntegralByToken")
	Boolean distributeIntegralByToken(@RequestBody DistributeIntegralReqDto distributeIntegralReqDto,
			@RequestHeader(name = "maijiToken") String maijiToken);

	/**
	 * 获得分销总额
	 * 
	 * @param param
	 * @param maijiToken
	 * @return
	 */
	@PostMapping("/distribution/getDistributionSumMoney")
	Double getDistributionSumMoney(@RequestBody DistributionLogListReqDto param,
			@RequestHeader(name = "maijiToken") String maijiToken);
	/**
	 * 分发基金
	 * @param distributeFundReqDto
	 * @param maijiToken
	 * @return
	 */                        
	@PostMapping("/capitalMain/distributeFundByToken")
	public Boolean distributeFundByToken(@RequestBody DistributeFundReqDto distributeFundReqDto,
			@RequestHeader(name = "maijiToken") String maijiToken);
	

}
